<template>
  <div>
    <button @click="login">登录</button>
  </div>
</template>
<script>
export default {
  methods: {
    login() { // 点击登录出发的函数
      localStorage.setItem('token', '888');
      // this.$router.push('')
      this.$router.back();
    }
  }
}
</script>